package cn.hx.mall.sell.controller;

import cn.hx.mall.sell.entity.SmsCouponHistory;
import cn.hx.mall.sell.service.SmsCouponHistoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 优惠券使用、领取历史表(SmsCouponHistory)表控制层
 *
 * @author makejava
 * @since 2022-11-02 16:10:28
 */
@RestController
@RequestMapping("smsCouponHistory")
public class SmsCouponHistoryController {
    /**
     * 服务对象
     */
    @Resource
    private SmsCouponHistoryService smsCouponHistoryService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SmsCouponHistory selectOne(Long id) {
        return this.smsCouponHistoryService.queryById(id);
    }

}